package com.linktrip.devicemanager.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.linktrip.devicemanager.entity.DeviceInfo;

public interface IDeviceDao extends IBaseDao<DeviceInfo> {

	@SuppressWarnings("rawtypes")
	public List<DeviceInfo> paging(Map map);
	
	@SuppressWarnings("rawtypes")
	public int totals(Map map);

	public List<String> matchingDeviceNo(@Param("no")String no);
	
	//获取device_no获取单条
	public DeviceInfo getEntityByNo(@Param("device_no") String id);
	//根据SIM 电话号码查找设备
	public DeviceInfo getDeviceInfoByPhoneNumber(@Param("phone_number")String number);
	
	public Integer updateDevice(DeviceInfo record);
}
